package com.yufuchang;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yufuchang on 2020/9/3.
 */
@RestController
public class FastJsonController {

    @GetMapping("/get_book")
    public Book getBook(){
        Book book = new Book();
        book.setBookName("springBoot");
        book.setPrice(100f);
        return book;
    }
}
